package fhp.hlhj.giantfold.module

import android.app.PictureInPictureParams
import com.lzy.okgo.model.HttpParams
import fhp.hlhj.giantfold.interfaces.BaseModuleInterface
import fhp.hlhj.giantfold.javaBean.LunBoBean
import fhp.hlhj.giantfold.network.UrlApis

/**
 * Created by Administrator on 2018\2\8 0008.
 */
class LunboModule {
    interface OnlunBoRersp:BaseModuleInterface<LunBoBean>

    fun getLunbo(params: HttpParams,listener:OnlunBoRersp){

        UrlApis.getLunBo(params)
                .doOnSubscribe {

                }
                .subscribe({
                    data->
                    listener.onResp(data)
                })
    }
}